<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
<html><head><title>QToolBar Class Reference</title><style>h3.fn,span.fn { margin-left: 1cm; text-indent: -1cm }
a:link { color: #004faf; text-decoration: none }
a:visited { color: #672967; text-decoration: none }
td.postheader { font-family: sans-serif }
tr.address { font-family: sans-serif }
body { background: #ffffff; color: black; }
</style></head><body><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr /><td align="left" valign="top" width="32"><img align="left" border="0" height="32" src="images/rb-logo.png" width="32" /></td><td width="1">&#160;&#160;</td><td class="postheader" valign="center"><a href="index.html"><font color="#004faf">Home</font></a>&#160;&#183; <a href="classes.html"><font color="#004faf">All Classes</font></a>&#160;&#183; <a href="modules.html"><font color="#004faf">Modules</font></a></td></table><h1 align="center">QToolBar Class Reference<br /><sup><sup>[<a href="qtgui.html">QtGui</a> module]</sup></sup></h1><p>The QToolBar class provides a movable panel that contains a set
of controls. <a href="#details">More...</a></p>

<p>Inherits <a href="qwidget.html">QWidget</a>.</p><h3>Methods</h3><ul><li><div class="fn" /><b><a href="qtoolbar.html#QToolBar">__init__</a></b> (<i>self</i>, QString&#160;<i>title</i>, QWidget&#160;<i>parent</i>&#160;=&#160;None)</li><li><div class="fn" /><b><a href="qtoolbar.html#QToolBar-2">__init__</a></b> (<i>self</i>, QWidget&#160;<i>parent</i>&#160;=&#160;None)</li><li><div class="fn" />QAction <b><a href="qtoolbar.html#actionAt">actionAt</a></b> (<i>self</i>, QPoint&#160;<i>p</i>)</li><li><div class="fn" />QAction <b><a href="qtoolbar.html#actionAt-2">actionAt</a></b> (<i>self</i>, int&#160;<i>ax</i>, int&#160;<i>ay</i>)</li><li><div class="fn" /><b><a href="qtoolbar.html#actionEvent">actionEvent</a></b> (<i>self</i>, QActionEvent&#160;<i>event</i>)</li><li><div class="fn" />QRect <b><a href="qtoolbar.html#actionGeometry">actionGeometry</a></b> (<i>self</i>, QAction&#160;<i>action</i>)</li><li><div class="fn" /><b><a href="qtoolbar.html#addAction">addAction</a></b> (<i>self</i>, QAction&#160;<i>action</i>)</li><li><div class="fn" />QAction <b><a href="qtoolbar.html#addAction-2">addAction</a></b> (<i>self</i>, QString&#160;<i>text</i>)</li><li><div class="fn" />QAction <b><a href="qtoolbar.html#addAction-3">addAction</a></b> (<i>self</i>, QIcon&#160;<i>icon</i>, QString&#160;<i>text</i>)</li><li><div class="fn" />QAction <b><a href="qtoolbar.html#addAction-4">addAction</a></b> (<i>self</i>, QString&#160;<i>text</i>, QObject&#160;<i>receiver</i>, SLOT()SLOT()&#160;<i>member</i>)</li><li><div class="fn" />QAction <b><a href="qtoolbar.html#addAction-5">addAction</a></b> (<i>self</i>, QString&#160;<i>text</i>, callable&#160;<i>receiver</i>)</li><li><div class="fn" />QAction <b><a href="qtoolbar.html#addAction-6">addAction</a></b> (<i>self</i>, QIcon&#160;<i>icon</i>, QString&#160;<i>text</i>, QObject&#160;<i>receiver</i>, SLOT()SLOT()&#160;<i>member</i>)</li><li><div class="fn" />QAction <b><a href="qtoolbar.html#addAction-7">addAction</a></b> (<i>self</i>, QIcon&#160;<i>icon</i>, QString&#160;<i>text</i>, callable&#160;<i>receiver</i>)</li><li><div class="fn" />QAction <b><a href="qtoolbar.html#addSeparator">addSeparator</a></b> (<i>self</i>)</li><li><div class="fn" />QAction <b><a href="qtoolbar.html#addWidget">addWidget</a></b> (<i>self</i>, QWidget&#160;<i>widget</i>)</li><li><div class="fn" />Qt.ToolBarAreas <b><a href="qtoolbar.html#allowedAreas">allowedAreas</a></b> (<i>self</i>)</li><li><div class="fn" /><b><a href="qtoolbar.html#changeEvent">changeEvent</a></b> (<i>self</i>, QEvent&#160;<i>event</i>)</li><li><div class="fn" /><b><a href="qtoolbar.html#childEvent">childEvent</a></b> (<i>self</i>, QChildEvent&#160;<i>event</i>)</li><li><div class="fn" /><b><a href="qtoolbar.html#clear">clear</a></b> (<i>self</i>)</li><li><div class="fn" />bool <b><a href="qtoolbar.html#event">event</a></b> (<i>self</i>, QEvent&#160;<i>event</i>)</li><li><div class="fn" />QSize <b><a href="qtoolbar.html#iconSize">iconSize</a></b> (<i>self</i>)</li><li><div class="fn" /><b><a href="qtoolbar.html#initStyleOption">initStyleOption</a></b> (<i>self</i>, QStyleOptionToolBar&#160;<i>option</i>)</li><li><div class="fn" />QAction <b><a href="qtoolbar.html#insertSeparator">insertSeparator</a></b> (<i>self</i>, QAction&#160;<i>before</i>)</li><li><div class="fn" />QAction <b><a href="qtoolbar.html#insertWidget">insertWidget</a></b> (<i>self</i>, QAction&#160;<i>before</i>, QWidget&#160;<i>widget</i>)</li><li><div class="fn" />bool <b><a href="qtoolbar.html#isAreaAllowed">isAreaAllowed</a></b> (<i>self</i>, Qt.ToolBarArea&#160;<i>area</i>)</li><li><div class="fn" />bool <b><a href="qtoolbar.html#isFloatable">isFloatable</a></b> (<i>self</i>)</li><li><div class="fn" />bool <b><a href="qtoolbar.html#isFloating">isFloating</a></b> (<i>self</i>)</li><li><div class="fn" />bool <b><a href="qtoolbar.html#isMovable">isMovable</a></b> (<i>self</i>)</li><li><div class="fn" />Qt.Orientation <b><a href="qtoolbar.html#orientation">orientation</a></b> (<i>self</i>)</li><li><div class="fn" /><b><a href="qtoolbar.html#paintEvent">paintEvent</a></b> (<i>self</i>, QPaintEvent&#160;<i>event</i>)</li><li><div class="fn" /><b><a href="qtoolbar.html#resizeEvent">resizeEvent</a></b> (<i>self</i>, QResizeEvent&#160;<i>event</i>)</li><li><div class="fn" /><b><a href="qtoolbar.html#setAllowedAreas">setAllowedAreas</a></b> (<i>self</i>, Qt.ToolBarAreas&#160;<i>areas</i>)</li><li><div class="fn" /><b><a href="qtoolbar.html#setFloatable">setFloatable</a></b> (<i>self</i>, bool&#160;<i>floatable</i>)</li><li><div class="fn" /><b><a href="qtoolbar.html#setIconSize">setIconSize</a></b> (<i>self</i>, QSize&#160;<i>iconSize</i>)</li><li><div class="fn" /><b><a href="qtoolbar.html#setMovable">setMovable</a></b> (<i>self</i>, bool&#160;<i>movable</i>)</li><li><div class="fn" /><b><a href="qtoolbar.html#setOrientation">setOrientation</a></b> (<i>self</i>, Qt.Orientation&#160;<i>orientation</i>)</li><li><div class="fn" /><b><a href="qtoolbar.html#setToolButtonStyle">setToolButtonStyle</a></b> (<i>self</i>, Qt.ToolButtonStyle&#160;<i>toolButtonStyle</i>)</li><li><div class="fn" />QAction <b><a href="qtoolbar.html#toggleViewAction">toggleViewAction</a></b> (<i>self</i>)</li><li><div class="fn" />Qt.ToolButtonStyle <b><a href="qtoolbar.html#toolButtonStyle">toolButtonStyle</a></b> (<i>self</i>)</li><li><div class="fn" />QWidget <b><a href="qtoolbar.html#widgetForAction">widgetForAction</a></b> (<i>self</i>, QAction&#160;<i>action</i>)</li></ul><h3>Qt Signals</h3><ul><li><div class="fn" />void <b><a href="qtoolbar.html#actionTriggered">actionTriggered</a></b> (QAction *)</li><li><div class="fn" />void <b><a href="qtoolbar.html#allowedAreasChanged">allowedAreasChanged</a></b> (Qt::ToolBarAreas)</li><li><div class="fn" />void <b><a href="qtoolbar.html#iconSizeChanged">iconSizeChanged</a></b> (const QSize&amp;)</li><li><div class="fn" />void <b><a href="qtoolbar.html#movableChanged">movableChanged</a></b> (bool)</li><li><div class="fn" />void <b><a href="qtoolbar.html#orientationChanged">orientationChanged</a></b> (Qt::Orientation)</li><li><div class="fn" />void <b><a href="qtoolbar.html#toolButtonStyleChanged">toolButtonStyleChanged</a></b> (Qt::ToolButtonStyle)</li><li><div class="fn" />void <b><a href="qtoolbar.html#topLevelChanged">topLevelChanged</a></b> (bool)</li><li><div class="fn" />void <b><a href="qtoolbar.html#visibilityChanged">visibilityChanged</a></b> (bool)</li></ul><a name="details" /><hr /><h2>Detailed Description</h2><p>The QToolBar class provides a movable panel that contains a set
of controls.</p>
<p>Toolbar buttons are added by adding <i>actions</i>, using
<a href="qtoolbar.html#addAction">addAction</a>() or <a href="qwidget.html#insertAction">insertAction</a>(). Groups of buttons
can be separated using <a href="qtoolbar.html#addSeparator">addSeparator</a>() or <a href="qtoolbar.html#insertSeparator">insertSeparator</a>(). If a toolbar
button is not appropriate, a widget can be inserted instead using
<a href="qtoolbar.html#addWidget">addWidget</a>() or <a href="qtoolbar.html#insertWidget">insertWidget</a>(); examples of
suitable widgets are <a href="qspinbox.html">QSpinBox</a>, <a href="qdoublespinbox.html">QDoubleSpinBox</a>, and <a href="qcombobox.html">QComboBox</a>. When a toolbar button is pressed it
emits the <a href="qtoolbar.html#actionTriggered">actionTriggered</a>() signal.</p>
<p>A toolbar can be fixed in place in a particular area (e.g. at
the top of the window), or it can be movable (<a href="qtoolbar.html#movable-prop">isMovable</a>()) between toolbar
areas; see <a href="qtoolbar.html#allowedAreas-prop">allowedAreas</a>() and <a href="qtoolbar.html#isAreaAllowed">isAreaAllowed</a>().</p>
<p>When a toolbar is resized in such a way that it is too small to
show all the items it contains, an extension button will appear as
the last item in the toolbar. Pressing the extension button will
pop up a menu containing the items that does not currently fit in
the toolbar.</p>
<p>When a QToolBar is not a child of a <a href="qmainwindow.html">QMainWindow</a>, it loses the ability to
populate the extension pop up with widgets added to the toolbar
using <a href="qtoolbar.html#addWidget">addWidget</a>(). Please use
widget actions created by inheriting <a href="qwidgetaction.html">QWidgetAction</a> and implementing <a href="qwidgetaction.html#createWidget">QWidgetAction.createWidget</a>()
instead.</p>
<hr /><h2>Method Documentation</h2><h3 class="fn"><a name="QToolBar" />QToolBar.__init__ (<i>self</i>, QString&#160;<i>title</i>, <a href="qwidget.html">QWidget</a>&#160;<i>parent</i>&#160;=&#160;None)</h3><p>The <i>parent</i> argument, if not None, causes <i>self</i> to be owned by Qt instead of PyQt.</p><p>Constructs a <a href="qtoolbar.html">QToolBar</a> with the given
<i>parent</i>.</p>
<p>The given window <i>title</i> identifies the toolbar and is
shown in the context menu provided by <a href="qmainwindow.html">QMainWindow</a>.</p>
<p><b>See also</b> <a href="qwidget.html#windowTitle-prop">setWindowTitle</a>().</p>


<h3 class="fn"><a name="QToolBar-2" />QToolBar.__init__ (<i>self</i>, <a href="qwidget.html">QWidget</a>&#160;<i>parent</i>&#160;=&#160;None)</h3><p>The <i>parent</i> argument, if not None, causes <i>self</i> to be owned by Qt instead of PyQt.</p><p>Constructs a <a href="qtoolbar.html">QToolBar</a> with the given
<i>parent</i>.</p>


<h3 class="fn"><a name="actionAt" /><a href="qaction.html">QAction</a> QToolBar.actionAt (<i>self</i>, <a href="qpoint.html">QPoint</a>&#160;<i>p</i>)</h3><p>Returns the action at point <i>p</i>. This function returns zero
if no action was found.</p>
<p><b>See also</b> <a href="qwidget.html#childAt">QWidget.childAt</a>().</p>


<h3 class="fn"><a name="actionAt-2" /><a href="qaction.html">QAction</a> QToolBar.actionAt (<i>self</i>, int&#160;<i>ax</i>, int&#160;<i>ay</i>)</h3><p>This is an overloaded function.</p>
<p>Returns the action at the point <i>x</i>, <i>y</i>. This
function returns zero if no action was found.</p>


<h3 class="fn"><a name="actionEvent" />QToolBar.actionEvent (<i>self</i>, <a href="qactionevent.html">QActionEvent</a>&#160;<i>event</i>)</h3><p>Reimplemented from <a href="qwidget.html#actionEvent">QWidget.actionEvent</a>().</p>


<h3 class="fn"><a name="actionGeometry" /><a href="qrect.html">QRect</a> QToolBar.actionGeometry (<i>self</i>, <a href="qaction.html">QAction</a>&#160;<i>action</i>)</h3><h3 class="fn"><a name="addAction" />QToolBar.addAction (<i>self</i>, <a href="qaction.html">QAction</a>&#160;<i>action</i>)</h3><p>This is an overloaded function.</p>
<p>Appends the action <i>action</i> to the toolbar's list of
actions.</p>
<p><b>See also</b> <a href="qmenu.html#addAction">QMenu.addAction</a>() and <a href="qwidget.html#addAction">QWidget.addAction</a>().</p>


<h3 class="fn"><a name="addAction-2" /><a href="qaction.html">QAction</a> QToolBar.addAction (<i>self</i>, QString&#160;<i>text</i>)</h3><p>This is an overloaded function.</p>
<p>Creates a new action with the given <i>text</i>. This action is
added to the end of the toolbar.</p>


<h3 class="fn"><a name="addAction-3" /><a href="qaction.html">QAction</a> QToolBar.addAction (<i>self</i>, <a href="qicon.html">QIcon</a>&#160;<i>icon</i>, QString&#160;<i>text</i>)</h3><p>This is an overloaded function.</p>
<p>Creates a new action with the given <i>icon</i> and <i>text</i>.
This action is added to the end of the toolbar.</p>


<h3 class="fn"><a name="addAction-4" /><a href="qaction.html">QAction</a> QToolBar.addAction (<i>self</i>, QString&#160;<i>text</i>, <a href="qobject.html">QObject</a>&#160;<i>receiver</i>, SLOT()SLOT()&#160;<i>member</i>)</h3><p>This is an overloaded function.</p>
<p>Creates a new action with the given <i>text</i>. This action is
added to the end of the toolbar. The action's <a href="qaction.html#triggered">triggered()</a> signal is connected to
<i>member</i> in <i>receiver</i>.</p>


<h3 class="fn"><a name="addAction-5" /><a href="qaction.html">QAction</a> QToolBar.addAction (<i>self</i>, QString&#160;<i>text</i>, callable&#160;<i>receiver</i>)</h3><p>This is an overloaded function.</p>
<p>Creates a new action with the icon <i>icon</i> and text
<i>text</i>. This action is added to the end of the toolbar. The
action's <a href="qaction.html#triggered">triggered()</a> signal is
connected to <i>member</i> in <i>receiver</i>.</p>


<h3 class="fn"><a name="addAction-6" /><a href="qaction.html">QAction</a> QToolBar.addAction (<i>self</i>, <a href="qicon.html">QIcon</a>&#160;<i>icon</i>, QString&#160;<i>text</i>, <a href="qobject.html">QObject</a>&#160;<i>receiver</i>, SLOT()SLOT()&#160;<i>member</i>)</h3><h3 class="fn"><a name="addAction-7" /><a href="qaction.html">QAction</a> QToolBar.addAction (<i>self</i>, <a href="qicon.html">QIcon</a>&#160;<i>icon</i>, QString&#160;<i>text</i>, callable&#160;<i>receiver</i>)</h3><h3 class="fn"><a name="addSeparator" /><a href="qaction.html">QAction</a> QToolBar.addSeparator (<i>self</i>)</h3><p>Adds a separator to the end of the toolbar.</p>
<p><b>See also</b> <a href="qtoolbar.html#insertSeparator">insertSeparator</a>().</p>


<h3 class="fn"><a name="addWidget" /><a href="qaction.html">QAction</a> QToolBar.addWidget (<i>self</i>, <a href="qwidget.html">QWidget</a>&#160;<i>widget</i>)</h3><p>The <i>widget</i> argument has it's ownership transferred to Qt.</p><p>Adds the given <i>widget</i> to the toolbar as the toolbar's
last item.</p>
<p>The toolbar takes ownership of <i>widget</i>.</p>
<p>If you add a <a href="qtoolbutton.html">QToolButton</a> with
this method, the tools bar's <a href="qt.html#ToolButtonStyle-enum">Qt.ToolButtonStyle</a> will not be
respected.</p>
<p><b>Note:</b> You should use <a href="qaction.html#visible-prop">QAction.setVisible</a>() to change the
visibility of the widget. Using <a href="qwidget.html#visible-prop">QWidget.setVisible</a>(), <a href="qwidget.html#show">QWidget.show</a>() and <a href="qwidget.html#hide">QWidget.hide</a>() does not work.</p>
<p><b>See also</b> <a href="qtoolbar.html#insertWidget">insertWidget</a>().</p>


<h3 class="fn"><a name="allowedAreas" /><a href="qt-toolbarareas.html">Qt.ToolBarAreas</a> QToolBar.allowedAreas (<i>self</i>)</h3><h3 class="fn"><a name="changeEvent" />QToolBar.changeEvent (<i>self</i>, <a href="qevent.html">QEvent</a>&#160;<i>event</i>)</h3><p>Reimplemented from <a href="qwidget.html#changeEvent">QWidget.changeEvent</a>().</p>


<h3 class="fn"><a name="childEvent" />QToolBar.childEvent (<i>self</i>, <a href="qchildevent.html">QChildEvent</a>&#160;<i>event</i>)</h3><p>Reimplemented from <a href="qobject.html#childEvent">QObject.childEvent</a>().</p>


<h3 class="fn"><a name="clear" />QToolBar.clear (<i>self</i>)</h3><p>Removes all actions from the toolbar.</p>
<p><b>See also</b> <a href="qwidget.html#removeAction">removeAction</a>().</p>


<h3 class="fn"><a name="event" />bool QToolBar.event (<i>self</i>, <a href="qevent.html">QEvent</a>&#160;<i>event</i>)</h3><p>Reimplemented from <a href="qobject.html#event">QObject.event</a>().</p>


<h3 class="fn"><a name="iconSize" /><a href="qsize.html">QSize</a> QToolBar.iconSize (<i>self</i>)</h3><h3 class="fn"><a name="initStyleOption" />QToolBar.initStyleOption (<i>self</i>, <a href="qstyleoptiontoolbar.html">QStyleOptionToolBar</a>&#160;<i>option</i>)</h3><h3 class="fn"><a name="insertSeparator" /><a href="qaction.html">QAction</a> QToolBar.insertSeparator (<i>self</i>, <a href="qaction.html">QAction</a>&#160;<i>before</i>)</h3><p>Inserts a separator into the toolbar in front of the toolbar
item associated with the <i>before</i> action.</p>
<p><b>See also</b> <a href="qtoolbar.html#addSeparator">addSeparator</a>().</p>


<h3 class="fn"><a name="insertWidget" /><a href="qaction.html">QAction</a> QToolBar.insertWidget (<i>self</i>, <a href="qaction.html">QAction</a>&#160;<i>before</i>, <a href="qwidget.html">QWidget</a>&#160;<i>widget</i>)</h3><p>The <i>widget</i> argument has it's ownership transferred to Qt.</p><p>Inserts the given <i>widget</i> in front of the toolbar item
associated with the <i>before</i> action.</p>
<p>Note: You should use <a href="qaction.html#visible-prop">QAction.setVisible</a>() to change the
visibility of the widget. Using <a href="qwidget.html#visible-prop">QWidget.setVisible</a>(), <a href="qwidget.html#show">QWidget.show</a>() and <a href="qwidget.html#hide">QWidget.hide</a>() does not work.</p>
<p><b>See also</b> <a href="qtoolbar.html#addWidget">addWidget</a>().</p>


<h3 class="fn"><a name="isAreaAllowed" />bool QToolBar.isAreaAllowed (<i>self</i>, <a href="qt.html#ToolBarArea-enum">Qt.ToolBarArea</a>&#160;<i>area</i>)</h3><p>Returns true if this toolbar is dockable in the given
<i>area</i>; otherwise returns false.</p>


<h3 class="fn"><a name="isFloatable" />bool QToolBar.isFloatable (<i>self</i>)</h3><h3 class="fn"><a name="isFloating" />bool QToolBar.isFloating (<i>self</i>)</h3><h3 class="fn"><a name="isMovable" />bool QToolBar.isMovable (<i>self</i>)</h3><h3 class="fn"><a name="orientation" /><a href="qt.html#Orientation-enum">Qt.Orientation</a> QToolBar.orientation (<i>self</i>)</h3><h3 class="fn"><a name="paintEvent" />QToolBar.paintEvent (<i>self</i>, <a href="qpaintevent.html">QPaintEvent</a>&#160;<i>event</i>)</h3><p>Reimplemented from <a href="qwidget.html#paintEvent">QWidget.paintEvent</a>().</p>


<h3 class="fn"><a name="resizeEvent" />QToolBar.resizeEvent (<i>self</i>, <a href="qresizeevent.html">QResizeEvent</a>&#160;<i>event</i>)</h3><p>Reimplemented from <a href="qwidget.html#resizeEvent">QWidget.resizeEvent</a>().</p>


<h3 class="fn"><a name="setAllowedAreas" />QToolBar.setAllowedAreas (<i>self</i>, <a href="qt-toolbarareas.html">Qt.ToolBarAreas</a>&#160;<i>areas</i>)</h3><h3 class="fn"><a name="setFloatable" />QToolBar.setFloatable (<i>self</i>, bool&#160;<i>floatable</i>)</h3><h3 class="fn"><a name="setIconSize" />QToolBar.setIconSize (<i>self</i>, <a href="qsize.html">QSize</a>&#160;<i>iconSize</i>)</h3><p>This method is also a Qt slot with the C++ signature <tt>void setIconSize(const QSize&amp;)</tt>.</p><h3 class="fn"><a name="setMovable" />QToolBar.setMovable (<i>self</i>, bool&#160;<i>movable</i>)</h3><h3 class="fn"><a name="setOrientation" />QToolBar.setOrientation (<i>self</i>, <a href="qt.html#Orientation-enum">Qt.Orientation</a>&#160;<i>orientation</i>)</h3><h3 class="fn"><a name="setToolButtonStyle" />QToolBar.setToolButtonStyle (<i>self</i>, <a href="qt.html#ToolButtonStyle-enum">Qt.ToolButtonStyle</a>&#160;<i>toolButtonStyle</i>)</h3><p>This method is also a Qt slot with the C++ signature <tt>void setToolButtonStyle(Qt::ToolButtonStyle)</tt>.</p><h3 class="fn"><a name="toggleViewAction" /><a href="qaction.html">QAction</a> QToolBar.toggleViewAction (<i>self</i>)</h3><p>Returns a checkable action that can be used to show or hide this
toolbar.</p>
<p>The action's text is set to the toolbar's window title.</p>
<p><b>See also</b> <a href="qaction.html#text-prop">QAction.text</a> and <a href="qwidget.html#windowTitle-prop">QWidget.windowTitle</a>.</p>


<h3 class="fn"><a name="toolButtonStyle" /><a href="qt.html#ToolButtonStyle-enum">Qt.ToolButtonStyle</a> QToolBar.toolButtonStyle (<i>self</i>)</h3><h3 class="fn"><a name="widgetForAction" /><a href="qwidget.html">QWidget</a> QToolBar.widgetForAction (<i>self</i>, <a href="qaction.html">QAction</a>&#160;<i>action</i>)</h3><p>Returns the widget associated with the specified
<i>action</i>.</p>
<p>This function was introduced in Qt 4.2.</p>
<p><b>See also</b> <a href="qtoolbar.html#addWidget">addWidget</a>().</p>
<hr /><h2>Qt Signal Documentation</h2><h3 class="fn"><a name="actionTriggered" />void actionTriggered (QAction *)</h3><p>This is the default overload of this signal.</p><p>This signal is emitted when an action in this toolbar is
triggered. This happens when the action's tool button is pressed,
or when the action is triggered in some other way outside the tool
bar. The parameter holds the triggered <i>action</i>.</p>


<h3 class="fn"><a name="allowedAreasChanged" />void allowedAreasChanged (Qt::ToolBarAreas)</h3><p>This is the default overload of this signal.</p><p>This signal is emitted when the collection of allowed areas for
the toolbar is changed. The new areas in which the toolbar can be
positioned are specified by <i>allowedAreas</i>.</p>
<p><b>See also</b> <a href="qtoolbar.html#allowedAreas-prop">allowedAreas</a>.</p>


<h3 class="fn"><a name="iconSizeChanged" />void iconSizeChanged (const QSize&amp;)</h3><p>This is the default overload of this signal.</p><p>This signal is emitted when the icon size is changed. The
<i>iconSize</i> parameter holds the toolbar's new icon size.</p>
<p><b>See also</b> <a href="qtoolbar.html#iconSize-prop">iconSize</a> and <a href="qmainwindow.html#iconSize-prop">QMainWindow.iconSize</a>.</p>


<h3 class="fn"><a name="movableChanged" />void movableChanged (bool)</h3><p>This is the default overload of this signal.</p><p>This signal is emitted when the toolbar becomes movable or
fixed. If the toolbar can be moved, <i>movable</i> is true;
otherwise it is false.</p>
<p><b>See also</b> <a href="qtoolbar.html#movable-prop">movable</a>.</p>


<h3 class="fn"><a name="orientationChanged" />void orientationChanged (Qt::Orientation)</h3><p>This is the default overload of this signal.</p><p>This signal is emitted when the orientation of the toolbar
changes. The new orientation is specified by the <i>orientation</i>
given.</p>
<p><b>See also</b> <a href="qtoolbar.html#orientation-prop">orientation</a>.</p>


<h3 class="fn"><a name="toolButtonStyleChanged" />void toolButtonStyleChanged (Qt::ToolButtonStyle)</h3><p>This is the default overload of this signal.</p><p>This signal is emitted when the tool button style is changed.
The <i>toolButtonStyle</i> parameter holds the toolbar's new tool
button style.</p>
<p><b>See also</b> <a href="qtoolbar.html#toolButtonStyle-prop">toolButtonStyle</a> and
<a href="qmainwindow.html#toolButtonStyle-prop">QMainWindow.toolButtonStyle</a>.</p>


<h3 class="fn"><a name="topLevelChanged" />void topLevelChanged (bool)</h3><p>This is the default overload of this signal.</p><p>This signal is emitted when the <a href="qtoolbar.html#floating-prop">floating</a> property changes. The
<i>topLevel</i> parameter is true if the toolbar is now floating;
otherwise it is false.</p>
<p>This function was introduced in Qt 4.6.</p>
<p><b>See also</b> <a href="qwidget.html#isWindow">isWindow</a>().</p>


<h3 class="fn"><a name="visibilityChanged" />void visibilityChanged (bool)</h3><p>This is the default overload of this signal.</p><p>This signal is emitted when the toolbar becomes <i>visible</i>
(or invisible). This happens when the widget is hidden or
shown.</p>
<p>This function was introduced in Qt 4.7.</p>


<address><hr /><div align="center"><table border="0" cellspacing="0" width="100%"><tr class="address"><td align="left" width="25%">PyQt&#160;snapshot-4.9.5-9eb6aac99275 for X11</td><td align="center" width="50%">Copyright &#169; <a href="http://www.riverbankcomputing.com">Riverbank&#160;Computing&#160;Ltd</a> and <a href="http://www.qtsoftware.com">Nokia</a> 2012</td><td align="right" width="25%">Qt&#160;4.8.3</td></tr></table></div></address></body></html>